//
//  BN_ClassParentCell.h
//  BabyNow
//
//  Created by 刘泽琛 on 14-6-16.
//  Copyright (c) 2014年 iMobile. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <SVProgressHUD.h>
#import <MediaPlayer/MediaPlayer.h>
#import "AppMacro.h"
#import "NotificationMacro.h"
#import "UIImage+wiRoundedRectImage.h"
#import "BN_DynamicHelper.h"
#import "BN_UserInfo.h"
#import "BN_UserHelper.h"
#import "ClassOperateModel.h"
#import "iMB_DownloadNetVideo.h"
#import "IMB_NetUtils.h"

// 更新数据
typedef void(^UpdateListData)(BOOL isUpdate,NSInteger pageNumber);

@interface BN_ClassParentCell : UITableViewCell <UIAlertViewDelegate,UIActionSheetDelegate>

#pragma mark
#pragma mark UI
@property (weak, nonatomic) IBOutlet UIView *headerView;

/**
 *  用户头像
 */
@property (weak, nonatomic) IBOutlet UIImageView *userPhotoImageView;
/**
 *  用户名称
 */
@property (weak, nonatomic) IBOutlet UILabel *userNameLabel;
/**
 *  浏览次数
 */
@property (weak, nonatomic) IBOutlet UILabel *browseTimeLabel;
/**
 *  用户发布时间
 */
@property (weak, nonatomic) IBOutlet UILabel *createTimeLabel;

/**
 *  展现图片内容
 */
@property (weak, nonatomic) IBOutlet UIImageView *disPlayImageView;
/**
 *  文字内容
 */
@property (weak, nonatomic) IBOutlet UILabel *contentTextLabel;
/**
 *  评论、点赞、收藏按钮View
 */
@property (weak, nonatomic) IBOutlet UIView *discLikeFengxiangView;

/**
 *  评论Btn
 */
@property (weak, nonatomic) IBOutlet UIButton *pinglunBtn;

/**
 *  喜欢Btn
 */
@property (weak, nonatomic) IBOutlet UIButton *xihuanBtn;

/**
 *  分享Btn
 */
@property (weak, nonatomic) IBOutlet UIButton *fenxiangBtn;

/**
 *  回复评论视图
 */
@property (weak, nonatomic) IBOutlet UIView *replView;

/**
 *  风火轮
 */
@property (nonatomic, strong) UIActivityIndicatorView *hintView;

#pragma mark
#pragma mark cell属性
/**
 *  cell高度
 */
@property (nonatomic) CGFloat cellHeight;

@property (nonatomic) CGFloat relpHeight;

@property (nonatomic) CGFloat singleRelpHeight;
/**
 *  绿色
 */
@property (nonatomic, strong) UIColor *greenColor;

/**
 *  回复个数
 */
@property (nonatomic) NSInteger replTime;

/**
 *  网络数组
 */
@property (nonatomic, strong) NSArray *netArr;

/**
 *  回复数组
 */
@property (nonatomic, strong) NSArray *replArr;

/**
 *  更新数据实例化
 */
@property (nonatomic, strong) UpdateListData updateData;

/**
 *  用户类型
 */
@property (nonatomic) NSInteger userType;

#pragma mark 视频属性

@property (nonatomic, strong) NSURL *videoUrl;

@property (nonatomic, strong) NSURL *videoThumbnailImageUrl;

/**
 *  视频播放MPMoviePlayerController
 */
@property (nonatomic, strong) MPMoviePlayerController *moviePlayer;

#pragma mark 
#pragma mark 网络参数
@property (nonatomic) NSInteger favoFlg;
@property (nonatomic) int praiFlg;
@property (nonatomic, copy) NSString *postId;
@property (nonatomic, copy) NSString *praiTime;
@property (nonatomic, copy) NSString *fileFlg;
@property (nonatomic) NSInteger postUserId;
@property (nonatomic) NSInteger postUserType;

#pragma mark
#pragma mark 方法

- (void)groupImageView:(NSArray *)imgArray;

- (void)toGroupOtherView;

- (void)toUpdateListData:(UpdateListData)updateData;

- (void)dealLikeBtnColorState;

- (void)groupVideo:(NSArray *)videoArray;

- (void)removeMovieView;

- (void)playVideoAction:(UITapGestureRecognizer *)tap;

@end
